﻿using System;
using System.ComponentModel;
using Domain.Infrastructure;

namespace System.Domain.Entity
{
    public enum OperationLogType
    {
        [Description("其他")]
        Other = 0,
        [Description("登录")]
        Login = 1,
        [Description("退出")]
        Exit = 2,
        [Description("访问")]
        Visit = 3,
        [Description("新增")]
        Create = 4,
        [Description("删除")]
        Delete = 5,
        [Description("修改")]
        Update = 6, 
        [Description("查询")]
        Query = 7,


    }
    

     
 

  
        /// <summary> 
        ///用户操作日志 实体 
        /// </summary>	
        public class SysOperationLogEntity : Entity<SysOperationLogEntity>, ICreationAudited 
        {

            /// <summary>
            /// 日志主键
            /// </summary>
            public string Id { get; set; }

            /// <summary>
            /// 类型
            /// </summary>
            public string Type { get; set; }

            /// <summary>
            /// IP地址
            /// </summary>
            public string IpAddress { get; set; }

            /// <summary>
            /// 浏览器
            /// </summary>
            public string Browser { get; set; }

            /// <summary>
            /// 浏览器版本
            /// </summary>
            public string Version { get; set; }

            /// <summary>
            /// 电脑信息
            /// </summary>
            public string UserAgent { get; set; }

            /// <summary>
            /// 系统模块Id
            /// </summary>
            public string ModuleId { get; set; }

            /// <summary>
            /// 权限
            /// </summary>
            public string AuthorizeId { get; set; }

            /// <summary>
            /// 请求方式
            /// </summary>
            public string RequestType { get; set; }

            /// <summary>
            /// Url地址
            /// </summary>
            public string Url { get; set; }

            /// <summary>
            /// 操作内容
            /// </summary>
            public string OperationCon { get; set; }

            /// <summary>
            /// 结果
            /// </summary>
            public bool? Result { get; set; }

            /// <summary>
            /// 描述
            /// </summary>
            public string Description { get; set; }

            /// <summary>
            /// 创建时间
            /// </summary>
            public DateTime? CreatorTime { get; set; }

            /// <summary>
            /// 创建用户
            /// </summary>
            public string CreatorUserId { get; set; }



        }

 

}
